package org.jeecg.modules.demo.authorizationinfo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.authorizationinfo.entity.AppStore;
import org.jeecg.modules.demo.authorizationinfo.entity.AuthorizationInfo;
import org.jeecg.modules.demo.authorizationinfo.mapper.AuthorizationInfoMapper;
import org.jeecg.modules.demo.authorizationinfo.service.IAuthorizationInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 授权信息表
 * @Author: jeecg-boot
 * @Date: 2022-07-09
 * @Version: V1.0
 */
@Service
public class AuthorizationInfoServiceImpl extends ServiceImpl<AuthorizationInfoMapper, AuthorizationInfo> implements IAuthorizationInfoService {
    @Autowired
    private AuthorizationInfoMapper authorizationInfoMapper;

    @Override
    public AuthorizationInfo getByAppid(String authorizerAppid) {
        return authorizationInfoMapper.getByAppid(authorizerAppid);
    }

    @Override
    public List<AppStore> listAppStore() {
        return authorizationInfoMapper.listAppStore();
    }
}
